package com.feng.paper.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 试卷考题
 * </p>
 *
 * @author feng
 * @since 2023-03-23 20:30:42
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("el_paper_qu")
@ApiModel(value = "PaperQu对象", description = "试卷考题")
public class PaperQu {

    @ApiModelProperty("ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty("试卷ID")
    @TableField("paper_id")
    private String paperId;

    @ApiModelProperty("题目ID")
    @TableField("qu_id")
    private String quId;

    @ApiModelProperty("题目类型")
    @TableField("qu_type")
    private Integer quType;

    @ApiModelProperty("是否已答")
    @TableField("answered")
    private Integer answered;

    @ApiModelProperty("主观答案")
    @TableField("answer")
    private String answer;

    @ApiModelProperty("问题排序")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty("单题分分值")
    @TableField("score")
    private Integer score;

    @ApiModelProperty("实际得分(主观题)")
    @TableField("actual_score")
    private Integer actualScore;

    @ApiModelProperty("是否答对")
    @TableField("is_right")
    private Integer isRight;


}
